package com.qzimp.fujiancuo.entity.vo;

import lombok.Getter;

@Getter
public enum ResultCode implements StatusCode{
    SUCCESS(1,"请求成功"),
    FAIL(0,"请求失败"),
    CUSTOM_ERROR(3,"自定义异常"),
    NO_DATA_ERROR(2,"no data"),
    VALIDATE_ERROR(1002, "参数校验失败"),
    RESPONSE_PACK_ERROR(1003, "response返回包装失败"),
    APP_ERROR(2000, "业务异常"),
    USER_LOGIN_OK(2001,"用户登录成功"),
    USER_LOGIN_ERROR(2002,"用户登录失败"),
    LOGIN_NAME_IS_REPEAT(2003,"账号已存在，请直接登陆"),
    USER_REGISTER_OK(2004,"用户注册成功"),
    USER_REGISTER_FAILURE(2005,"用户注册失败"),
    USER_LOGIN_NAME_NOT_EXIST(2006,"账号不存在，请注册"),
    USER_TOKEN_UPDATE_FAILURE(2007,"用户Token更新失败，重新登陆"),
    USER_TOKEN_VERIFY_DATE_FAILURE(2008,"TOKEN时间失效，重新登陆"),
    USER_TOKEN_VERIFY_FAILURE(2009,"TOKEN验证失败，重新登陆"),
    VERIFY_CODE_FAILURE(2010,"输入验证码错误，重新输入"),
    EXCEPTION_ERROR(5000,"系统内部错误，请联系管理员");

    private  int code;

    private String msg;



    ResultCode(int code,String msg){
        this.code=code;
        this.msg=msg;
    }


}
